<extend name="Index:base" />
		<block name="content">

				<!-- 中间部分开始 -->
				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<!-- 面包屑导航 -->
						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="__APP__/admin/index">首页</a>
							</li>
							<li class="active">修改文章</li>
						</ul><!-- .breadcrumb -->

					</div>

					<div class="page-content">

						<!-- 页面导航 -->
						<div class="page-header">
							<h1>
								修改文章
								<a class="btn btn-info btn-sm pull-right" href="__CONTROLLER__/index">
									<i class="icon-reply icon-only"></i>
								</a>
							</h1>
						</div>

						<div class="row" style="margin-top:35px;">
							<div class="col-xs-12">
								<form class="form-horizontal" role="form" action="__CONTROLLER__/update" method="post" enctype="multipart/form-data">
								<input type="hidden" value="{$articlemanage.aid}" name="aid">
									<div class="form-group">
										<label class="col-sm-2 control-label no-padding-right"> 所属分类 </label>
										<div class="col-sm-10">
											<select name="pacid" id="" style="width:100px;">
											<foreach name="articleclasses" item="v">
												<option  <eq name="v.acid" value="$articlemanage.pacid">selected</eq> value="{$v.acid}">{$v.acname}</option>
											</foreach>
											</select>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label no-padding-right"> 文章标题 </label>
										<div class="col-sm-10">
											<input class="col-xs-10 col-sm-5" type="text" placeholder="请填写文章标题" name="atitle" value="{$articlemanage.atitle}">
										</div>
									</div>
									<!--<div class="form-group">
										<label class="col-sm-2 control-label no-padding-right"> 文章内容 </label>
										<div class="col-sm-10">
											<input class="col-xs-10 col-sm-5" type="text" placeholder="请填写内容" name="acontent" value="{$articlemanage.acontent}">
										</div>
									</div>-->
									<div class="form-group">
										<label class="col-sm-2 control-label no-padding-right"> 文章内容 </label>
										<div class="col-sm-10">
											<!--<input class="col-xs-10 col-sm-5" type="text" placeholder="请填写内容" name="acontent">-->
											<textarea id="content" name="acontent">
														{$articlemanage.acontent|htmlspecialchars_decode}
											</textarea>
										</div>
									</div>
									<div class="clearfix form-actions">
										<div class="col-md-offset-2 col-md-10">
											<button class="btn btn-info" type="submit">
												<i class="icon-ok bigger-110"></i>
												提交
											</button>

											&nbsp; &nbsp; &nbsp;
											<button class="btn" type="reset">
												<i class="icon-undo bigger-110"></i>
												重置
											</button>
										</div>
									</div>
								</form>
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div><!-- /.main-content -->
				<!-- 中间部分结束 -->

		</block>
		<block name="privatejs">

		<!-- inline scripts related to this page -->

		<script type="text/javascript">
			jQuery(function($) {

				//设置当前页面的菜单高亮显示 开始
				var nownav = "#sidebar a[href*=Articlemanage]";
				var parentattr = $(nownav).parent().parent().attr("class");
				$(nownav).parent().addClass('active');
				if (parentattr == 'submenu') {
					$(nownav).parent().parent().parent().addClass('active open');
				};
				//设置当前页面的菜单高亮显示 结束
			});
		window.UEDITOR_HOME_URL = "__PUBLIC__/admin/js/ueditor/";
		</script>
		<!-- 加载配置文件 2-->
	<script type="text/javascript" src="__PUBLIC__/admin/js/ueditor/ueditor.config.js"></script>
	<!-- 加载编辑器源码文件3 -->
	<script type="text/javascript" src="__PUBLIC__/admin/js/ueditor/ueditor.all.js"></script>
		</script>
<script type="text/javascript">
//初始化编辑器，设定显示的按钮
	UE.getEditor('content',{initialFrameHeight:200,initialFrameWidth:830,toolbars:[
            ['bold',  'insertimage', 'emotion','date','undo','redo','paragraph','fontfamily','forecolor','justify','lineheight']
        ] });
</script>
</block>

